<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterServiceConfigAddSettleType extends Migrator
{
    public function up()
    {

        $this->table('agent_service_config')
            ->addColumn('income_type', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '结算类型1返佣 2接口'])
            ->update();

    }

    public function down()
    {

        $this->table('agent_service_config')->removeColumn('income_type');

    }
}
